﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="StaffEdit.aspx.cs" Inherits="SwenAssigment.StaffEdit" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .auto-style5 {
            text-align: right;
        }
    </style>
    </asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h1 style="text-align: center">Staff Particulars</h1>
   <table class="auto-style1" style="width: 677px">
        <tr>
            <td class="auto-style2">Staff ID:</td>
            <td>
                
                <asp:Label ID="IdLbl" runat="server"></asp:Label>
                
            </td>
        </tr>
        <tr>
            <td class="auto-style2">Staff Name:</td>
            <td>
                <asp:TextBox ID="StaffNameTbx" runat="server"></asp:TextBox>
                *<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="Please enter a Name" ControlToValidate="StaffNameTbx" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
        </tr>
       <tr>
            <td class="auto-style2">NRIC:</td>
            <td>
                <asp:TextBox ID="NRICTbx" runat="server" MaxLength="9"></asp:TextBox>
                *<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Please enter NRIC" ControlToValidate="NRICTbx" ForeColor="Red"></asp:RequiredFieldValidator>
            &nbsp;<asp:RegularExpressionValidator ID="RegularExpressionValidator7" runat="server" ErrorMessage="Invalid NRIC" ForeColor="Red" ControlToValidate="NRICTbx" ValidationExpression="^[a-zA-Z0-9'@&#.\s]{9,9}$"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td class="auto-style2">Date Of Birth:</td>
            <td>
                <asp:ScriptManager ID="ScriptManager1" runat="server">
                </asp:ScriptManager>
                <asp:TextBox ID="DobTbx" runat="server"></asp:TextBox>
                *<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="Please enter Date Of Birth" ControlToValidate="DobTbx" ForeColor="Red"></asp:RequiredFieldValidator>
                <asp:CalendarExtender ID="CalendarExtender1" runat="server" DaysModeTitleFormat="M/d/yyyy" TodaysDateFormat="M/d/yyyy" TargetControlID="DobTbx"></asp:CalendarExtender>
            </td>
        </tr>
        <tr>
            <td class="auto-style2">Bank Account Number:</td>
            <td>
                <asp:TextBox ID="BankAccountTbx" runat="server"></asp:TextBox>
                *<asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ErrorMessage="Please enter Bank Account Number" ControlToValidate="BankAccountTbx" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="auto-style2">Address</td>
            <td>
                <asp:TextBox ID="AddressTbx" runat="server"></asp:TextBox>
                *<asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ErrorMessage="Please enter Address" ControlToValidate="AddressTbx" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="auto-style2">Contact Number:</td>
            <td>
                <asp:TextBox ID="ContactNumberTbx" runat="server" MaxLength="8"></asp:TextBox>
                *<asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ErrorMessage="Please enter Contact Number" ControlToValidate="ContactNumberTbx" ForeColor="Red"></asp:RequiredFieldValidator>
            &nbsp;<asp:RegularExpressionValidator ID="RegularExpressionValidator8" runat="server" ErrorMessage="Invalid Contact Number" ForeColor="Red" ControlToValidate="ContactNumberTbx" ValidationExpression="^[0-9]{8,8}$" /></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td class="auto-style2">Job:</td>
            <td>
                    <asp:TextBox ID="JobTbx" runat="server"></asp:TextBox>
                    *<asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ForeColor="Red" ErrorMessage="Please Enter a Job" ControlToValidate="JobTbx"></asp:RequiredFieldValidator>
            </td>
        </tr>
       <tr>
           <td>Duty Type:</td>
           <td>
                <asp:CheckBoxList ID="DutyCBL" runat="server">
                    <asp:ListItem>General Maintenance</asp:ListItem>
                    <asp:ListItem>Room Maintenance</asp:ListItem>
                    <asp:ListItem>Estate Maintenance</asp:ListItem>
                    <asp:ListItem>Security</asp:ListItem>
                </asp:CheckBoxList>
           </td>
       </tr>
        <tr>
            <td></td>
            <td>
&nbsp;<asp:Button ID="UpdateBtn" runat="server" Text="Update" OnClick="UpdateBtn_Click" />
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:Button ID="DeleteBtn" runat="server" Text="Delete" OnClick="DeleteBtn_Click" />
            </td>
        </tr>
                <tr>
            <td>
                <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/StaffOverview.aspx">Back to Housekeeping & Staff Page</asp:HyperLink>
                    </td>
            <td class="auto-style5">
                *-Mandatory fields</td>
        </tr>
    </table>
</asp:Content>
